import {
  reducer as login
} from '@/components/Login'
// import searchlist from '@/components/Header/reducer'
// import activeTabRed from '@/views/components/Search/reducer'
// import utils from '@/utils/utils'


const intialState = {
  user: {
    isLogin: false,
    info: {
      cPhone: '',
      cUsername: '',
      cPhoto: ''
    }
  },
  // searchListData: {
  //   searchLIst: [],
  //   isHeaderSearch: false,
  //   isCanSearch: true
  // },
  // activeTab: {
  //   typeName: ""
  // }
}

export default function reducer(state = intialState, action) {
  // console.log(action,'xxx-');
  return {
    user: login(state.user, action),
    // searchListData: searchlist(state.searchListData, action),
    // activeTab: activeTabRed(state.activeTab, action)
  }
}